package controllers

import (
	"{{.ProjectName}}/services"
	"{{.ProjectName}}/utils"

	"github.com/gin-gonic/gin"
)

type ExampleController struct{}

func (c *ExampleController) Ping(ctx *gin.Context) {
	svc := &services.ExampleService{}
	out, err := svc.Ping(ctx)
	if err != nil {
		utils.ReturnJson(ctx, 400, "", err)
		return
	}
	utils.ReturnJson(ctx, 0, out, nil)
}
